fix: 1101 correctifs etape 3 (formattage adresse)#1284
Open
olivier-rabot wants to merge 6 commits intomainfrom
Open
fix: 1101 correctifs etape 3 (formattage adresse)#1284olivier-rabot wants to merge 6 commits intomainfrom
olivier-rabot wants to merge 6 commits intomainfrom
Conversation
revu-bot
reviewed
Apr 22, 2026
Collaborator
revu-bot
left a comment
There was a problem hiding this comment.
PR Review: fix/1101 — Address formatting & step 3 corrections
This PR extracts a normalizeAdresse utility into shared-bridge, fixes a bug where allResults was populated even on failed validations, and adds TypeScript types to several Vue components. The overall direction is good, but there are a few issues worth addressing.
| File | Lines | Severity | Issue |
|---|---|---|---|
shared-bridge/src/utils/normalizeAdresse.ts |
3 | CRITICAL | Null-input type mismatch — function signature says AdresseDto but passes null/undefined through |
shared-bridge/src/utils/normalizeAdresse.ts |
13–17 | IMPORTANT | Redundant null-checks inside already-guarded branch |
frontend-usagers/…/listeSejours.vue |
175–180 | IMPORTANT | values cast to Record<string, any> defeats the purpose of the typed useForm<SejourFormValues> |
frontend-usagers/…/typeDeficiences.vue |
51–64 | IMPORTANT | validationObligatoire prop declared but never used — dead code |
frontend-usagers/…/tranchesAge.vue |
49–62 | IMPORTANT | Same requiredUnlessBrouillon wrapper is kept for non-BROUILLON statuses, making the BROUILLON branch redundant with the existing helper |
revu-bot
reviewed
Apr 22, 2026
revu-bot
reviewed
Apr 22, 2026
achorein
reviewed
Apr 23, 2026
a9c1f71 to
0a80dd5
Compare
0a80dd5 to
23b4903
Compare
|
|
🎉 Deployment for commit 23b4903 : Ingresses
Docker images
|
achorein
approved these changes
Apr 24, 2026
| nbJours: parseInt(values.nbJours), | ||
| mois: values.periode.map((m) => parseInt(m)), | ||
| agrBilanAnnuelId, | ||
| mois: values.periode.map((m: string) => parseInt(m)), |
Contributor
There was a problem hiding this comment.
Suggested change
| mois: values.periode.map((m: string) => parseInt(m)), | |
| mois: values.periode.map((m: string) => parseInt(m, 10)), |
toujours spécifié le radix dans un parseInt !
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Ticket(s) lié(s)
https://jira-mcas.atlassian.net/jira/software/c/projects/VAO/boards/336?selectedIssue=VAO-1194
Description
Correction du problème lié à l'ajout d'un séjour sur l'etape 3. Ajout d'une fonction de formattage de l'adresse.
Activation conditionnelle de certains champs (type deficiences, periode) > non required quand l'agrement est en statut brouillon
Screenshot / liens loom
Check-list
console.log<script lang="ts">Testing instructions